//
//  SLDeviceTypeCell.m
//  SlockApp
//
//  Created by 凯朱 on 2024/10/7.
//

#import "SLDeviceTypeCell.h"

@implementation SLDeviceTypeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    _bgView.layer.cornerRadius = 20;
    _bgView.layer.masksToBounds = YES;
    _bgView.layer.borderColor = kHexColor(@"#292929").CGColor;
    _bgView.layer.borderWidth = 1;
    
    [_bgView addLandColorWithStart:kHexColor(@"#171717") endColor:kHexColor(@"#363638") frame:CGRectMake(0, 0, kScreenWidth-40, self.bgView.height)];
 
}

-(void)setModel:(SLProductModel *)model{
    _model = model;
    _titleLbl.text = model.productName;
    _descLbl.text = model.desc;
    [_icon sd_setImageWithURL:[NSURL URLWithString:model.mainImage] placeholderImage:kDefaultImage];
}


@end
